## API Report File for "@backstage/plugin-adr"

> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).

```ts
/// <reference types="react" />

import { AdrDocument } from '@backstage/plugin-adr-common';
import { AdrFilePathFilterFn } from '@backstage/plugin-adr-common';
import { ApiRef } from '@backstage/core-plugin-api';
import { BackstagePlugin } from '@backstage/core-plugin-api';
import { DiscoveryApi } from '@backstage/core-plugin-api';
import { FetchApi } from '@backstage/core-plugin-api';
import { isAdrAvailable } from '@backstage/plugin-adr-common';
import { JSX as JSX_2 } from 'react';
import { default as React_2 } from 'react';
import { ReactNode } from 'react';
import { ResultHighlight } from '@backstage/plugin-search-common';
import { RouteRef } from '@backstage/core-plugin-api';

// @public
export interface AdrApi {
  listAdrs(url: string): Promise<AdrListResult>;
  readAdr(url: string): Promise<AdrReadResult>;
}

// @public
export const adrApiRef: ApiRef<AdrApi>;

// @public
export class AdrClient implements AdrApi {
  constructor(options: AdrClientOptions);
  // (undocumented)
  listAdrs(url: string): Promise<AdrListResult>;
  // (undocumented)
  readAdr(url: string): Promise<AdrReadResult>;
}

// @public
export interface AdrClientOptions {
  // (undocumented)
  discoveryApi: DiscoveryApi;
  // (undocumented)
  fetchApi: FetchApi;
}

// @public
export type AdrContentDecorator = (adrInfo: {
  baseUrl: string;
  content: string;
}) => {
  content: string;
};

// @public
export type AdrFileInfo = {
  type: string;
  path: string;
  name: string;
  title?: string;
  status?: string;
  date?: string;
};

// @public
export type AdrListResult = {
  data: AdrFileInfo[];
};

// @public
export const adrPlugin: BackstagePlugin<
  {
    root: RouteRef<undefined>;
  },
  {}
>;

// @public
export const AdrReader: {
  (props: {
    adr: string;
    decorators?: AdrContentDecorator[];
  }): React_2.JSX.Element;
  decorators: Readonly<{
    createRewriteRelativeLinksDecorator(): AdrContentDecorator;
    createRewriteRelativeEmbedsDecorator(): AdrContentDecorator;
    createFrontMatterFormatterDecorator(): AdrContentDecorator;
  }>;
};

// @public
export type AdrReadResult = {
  data: string;
};

// @public
export const AdrSearchResultListItem: (
  props: AdrSearchResultListItemProps,
) => JSX.Element | null;

// @public (undocumented)
export type AdrSearchResultListItemProps = {
  lineClamp?: number;
  highlight?: ResultHighlight;
  icon?: ReactNode;
  rank?: number;
  result?: AdrDocument;
};

// @public
export const EntityAdrContent: (props: {
  contentDecorators?: AdrContentDecorator[] | undefined;
  filePathFilterFn?: AdrFilePathFilterFn | undefined;
}) => JSX_2.Element;

export { isAdrAvailable };
```
